#include <iostream>
#include "CCSelectSort.h"
#include "CCBoubleSort.h"
#include "SortTestHelper.h"

#define ARRAY_LEN(a)  sizeof(a)/sizeof(a[0])
int main() {
    std::cout << "Input the len of the length of the data:" << std::endl;
    int len = 0;

    int *pInt = SortTestHelper::getLengthNRandList(10,0,1000);
    CCSort *pSort = new CCSelectSort();
    pSort->println(pInt,10);
    pSort->sort(pInt,10);
    pSort->println(pInt,10);

    delete pSort;
    std::cout << "******************************************************************************" << std::endl;
    pSort = new CCBoubleSort();
    pSort->println(pInt,10);
    pSort->sort(pInt,10);
    pSort->println(pInt,10);

    return 0;
}